package com.yunhe.controller;

import com.yunhe.Service.UserService;
import com.yunhe.Service.impl.UserServiceImpl;
import com.yunhe.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Controller("userController")
public class UserController {
    @Autowired
    @Qualifier("userService")
    private UserService userService;
//UserService userService=new UserServiceImpl();
        public void find() {
            System.out.println("controller执行");
            userService.selectAll();
        }
    }


